Hi All,
I'm using EWS to populate an appointment body with details of events. The value I pass through on creation of an event is formatted like this (note: the appointment itself is already present in exchange):
<p>Name<br />Address<br />score</p>
This works and is formatted in outlook as I'd like:
Name
Address
Score
There may be multiple event details added to one exchange appointment which are listed below each other but added separately:
Name
Address
Score
Name
Address
Score
This also works without an issue.
The problem is when I come to remove event details using a replace function (where appointmentText is the original string - "<p>Name<br />Address<br />score</p>") e.g.:
appointment.body.ToString().replace(appointmentText,"");
The text is not being replaced.
If I pass through a single line of text without the tags to format the details the replace works correctly but the text is less user friendly to read in the outlook appointment.
My assumption is that something happens to the string formatting after I've called the EWS but I don't know what. I've read a little about exchange converting it to RTF. If this is the case, are there any formatting conversion methods I can use on the appointmentText string to allow the replace function to find the string in the body?
- Edited by Sophie Ryder 18 hours 53 minutes ago